package com.feicheng.persistence.service.impl;

import com.feicheng.persistence.entity.AVipType;
import com.feicheng.persistence.mapper.AVipTypeMapper;
import com.feicheng.persistence.service.IAVipTypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author cailongyang
 * @since 2025-02-11
 */
@Service
public class AVipTypeServiceImpl extends ServiceImpl<AVipTypeMapper, AVipType> implements IAVipTypeService {
    @Autowired
    private AVipTypeMapper aVipTypeMapper;

    @Override
    public List<AVipType> getAllAVipTypes(){
        return aVipTypeMapper.getAllAVipTypes();
    }

    @Override
    public AVipType getAVipTypeById(String viptypeid){
        return aVipTypeMapper.getAVipTypeById(viptypeid);
    }

    @Override
    public void addAVipType(AVipType aVipType){
        aVipTypeMapper.insertAVipType(aVipType);
    }

    @Override
    public void updateAVipType(AVipType aVipType){
        aVipTypeMapper.updateAVipType(aVipType);
    }

    @Override
    public void deleteAVipType(String viptypeid){
        aVipTypeMapper.deleteAVipType(viptypeid);
    }
}
